package com.sourcetrip.my;


import com.sourcetrip.my.abs.AbstractQueue;

/**
 * @author: ZhouBert
 * @date: 2020/12/14
 * @description:	用 链表实现的 单端队列
 */
public class LinkedListQueueV0<E> extends AbstractQueue<E> {


	@Override
	public void enQueue(E element) {
		list.add(element);
	}

	@Override
	public E deQueue() {
		E e = list.remove(0);
		return e;
	}

	@Override
	public E peek() {
		E e = list.get(0);
		return e;
	}
}
